// 基于template/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{spinalCase ctrl.codeName}}-form-vo.ts.hbs生成
import { ControlVOBase } from '@/core';
import { transformValue } from '@/utils';
import { model } from './main-form-model';

export class FormControlVO extends ControlVOBase {
    constructor(data: any) {
        //  表单预置字段
        data.srfwfmemo = data['srfwfmemo'] ? data['srfwfmemo'] : '';
        data.srffrontuf = data['srffrontuf'] ? data['srffrontuf'] : '';
        super(data);
        //  表单自持属性
        this.$ownKeys = ['srfupdatedate', 'srforikey', 'srfkey', 'srfmajortext', 'srftempmode', 'srfuf', 'srfdeid', 'srfsourcekey', 'ibizappeditorid', 'amount', 'ibizappeditorname', 'ibizappeditortype', 'documentaddress', 'rditordescription', 'createman', 'createdate', 'updateman', 'updatedate'];
    }
    get srfupdatedate() {
        return this.$DO.updatedate;
    }
    set srfupdatedate(value: any) {
        this.$DO.updatedate = value;
    }
    get srfkey() {
        return this.$DO.ibizappeditorid;
    }
    set srfkey(value: any) {
        this.$DO.ibizappeditorid = value;
    }
    get srfmajortext() {
        return this.$DO.ibizappeditorname;
    }
    set srfmajortext(value: any) {
        this.$DO.ibizappeditorname = value;
    }
    get ibizappeditorid() {
        return this.$DO.ibizappeditorid;
    }
    set ibizappeditorid(value: any) {
        this.$DO.ibizappeditorid = value;
    }
    get amount() {
        return this.$DO.amount;
    }
    set amount(value: any) {
        this.$DO.amount = value;
    }
    get ibizappeditorname() {
        return this.$DO.ibizappeditorname;
    }
    set ibizappeditorname(value: any) {
        this.$DO.ibizappeditorname = value;
    }
    get ibizappeditortype() {
        return this.$DO.ibizappeditortype;
    }
    set ibizappeditortype(value: any) {
        this.$DO.ibizappeditortype = value;
    }
    get documentaddress() {
        return this.$DO.documentaddress;
    }
    set documentaddress(value: any) {
        this.$DO.documentaddress = value;
    }
    get rditordescription() {
        return this.$DO.rditordescription;
    }
    set rditordescription(value: any) {
        this.$DO.rditordescription = value;
    }
    get createman() {
        return this.$DO.createman;
    }
    set createman(value: any) {
        this.$DO.createman = value;
    }
    get createdate() {
        return this.$DO.createdate;
    }
    set createdate(value: any) {
        this.$DO.createdate = value;
    }
    get updateman() {
        return this.$DO.updateman;
    }
    set updateman(value: any) {
        this.$DO.updateman = value;
    }
    get updatedate() {
        return this.$DO.updatedate;
    }
    set updatedate(value: any) {
        this.$DO.updatedate = value;
    }
    // 界面主键标识
    get ibizappeditor() {
        return this.$DO.ibizappeditorid;
    }

    set ibizappeditor(value: any) {
        this.$DO.ibizappeditorid = value;
    }

    //  工作流预置字段
    srfwfmemo: any;
    srffrontuf: any;

    //  无实体属性表单项
    get srftempmode() {
        return this.$DO.srftempmode;
    }

    set srftempmode(value: any) {
        this.$DO.srftempmode = value;
    }

    //  表单重复器

    /**
     * 返回后台数据
     *
     * @return {*} 
     * @memberof FormControlVO
     */
	public getDo() {
        return {
            srffrontuf: this.srffrontuf,
            ibizappeditorid: this.$DO.ibizappeditorid,
amount: this.$DO.amount,
ibizappeditorname: this.$DO.ibizappeditorname,
ibizappeditortype: this.$DO.ibizappeditortype,
documentaddress: this.$DO.documentaddress,
rditordescription: this.$DO.rditordescription,
createman: this.$DO.createman,
createdate: this.$DO.createdate,
updateman: this.$DO.updateman,
updatedate: this.$DO.updatedate,
        }
	}

}